<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
  <model>
    <instance>
      <tblContent>
        <nContentKey/>
        <nContentPrimaryId/>
        <nVersion/>
        <cContentForiegnRef/>
        <cContentName/>
        <cContentSchemaName>Image</cContentSchemaName>
        <cContentXmlBrief>
          <Content internalLink="" externalLink="" position="">
            <img class="image"/>
          </Content>
        </cContentXmlBrief>
        <cContentXmlDetail/>
        <nAuditId/>
        <nAuditKey/>
        <dPublishDate/>
        <dExpireDate/>
        <dInsertDate/>
        <nInsertDirId/>
        <dUpdateDate/>
        <nUpdateDirId/>
        <nStatus>1</nStatus>
        <cDescription/>
      </tblContent>
    </instance>
    <submission id="EditContent" action="" method="post" event="return form_check(this)"/>
    <bind id="cContentName" nodeset="tblContent/cContentName" required="true()" type="string"/>
    <bind nodeset="tblContent/cContentXmlBrief/Content">
      <bind id="cPosition" nodeset="@position" required="true()" type="string"/>
      <bind id="cContentImage" nodeset="img[@class='image']" required="false()" type="xml-replace"/>
      <bind id="cContentLink" nodeset="@externalLink" required="false()" type="string"/>
      <bind id="cContentPage" nodeset="@internalLink" required="false()" type="string"/>
      <!--<bind id="cContentName" nodeset="@title" required="false()" type="string"/>-->
    </bind>
    <bind id="dPublishDate" nodeset="tblContent/dPublishDate" required="false()" type="string"/>
    <bind id="dExpireDate" nodeset="tblContent/dExpireDate" required="false()" type="string"/>
    <bind id="nStatus" nodeset="tblContent/nStatus" required="true()" type="string"/>
    <bind id="cDescription" nodeset="tblContent/cDescription" required="false()" type="string"/>
    <bind id="bCascade" nodeset="tblContent/bCascade" required="false()" type="string"/>
    <!--bind id="cContentRecRead" nodeset="tblContent/cContentXmlDetail/Content/group/div[@class='recRead']" required="false()" type="string"/-->
  </model>
  <group ref="EditContent" class="2col">
    <label>Add/Edit Image</label>
    <group>
      <group>
        <label>Settings</label>
        <input bind="cPosition" class="readonly">
          <label>Position</label>
        </input>
        <input bind="nContentKey" class="hidden">
          <label>ContentId</label>
        </input>
        <input bind="dPublishDate" class="calendar short">
          <label>Publish Date</label>
        </input>
        <input bind="dExpireDate" class="calendar short">
          <label>Expire Date</label>
        </input>
        <select1 bind="nStatus" appearance="full" class="required vshort">
          <label>Status</label>
          <item>
            <label>Live</label>
            <value>1</value>
          </item>
          <item>
            <label>Hidden</label>
            <value>0</value>
          </item>
        </select1>
        <select bind="bCascade" appearance="full" class="multiline">
          <item>
            <label>Show this on child pages</label>
            <value>true</value>
          </item>
          <help class="inline">This module will be shown on every child of the current page. If you use this feature when adding a module to the home page, the module will appear on every page.</help>
        </select>
        <input bind="cDescription" class="short">
          <label>Change Notes</label>
        </input>
      </group>
    </group>
    <group>
      <group>
        <label>Pick Image</label>
        <input bind="cContentName" class="required short">
          <label>Image Name</label>
        </input>
        <input bind="cContentImage" class="short pickImage">
          <label>Image</label>
        </input>
      </group>
      <group>
        <label>Link (optional)</label>
        <input bind="cContentLink" class="long">
          <label>URL</label>
        </input>
        <help>or</help>
        <select1 bind="cContentPage" class="siteTree">
          <label>Page</label>
        </select1>
      </group>
    </group>
  </group>
  <group>
    <submit submission="" ref="ewSubmit" class="principle">
      <label>Save Image Link</label>
    </submit>
  </group>
</Content>
